package com.rpa.server.servicerpaserver;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@EnableTransactionManagement //开启注解方式的事务管理
@EnableScheduling
@Slf4j
@EnableCaching
@ComponentScan(basePackages = {"com.rpa.server.servicerpaserver", "com.rpa.secure"})
@MapperScan(basePackages = {"com.rpa.server.servicerpaserver.crawler.mapper"})
public class ServiceRpaServerApplication {
    public static void main(String[] args) {
        log.info("开始启动");
        SpringApplication.run(ServiceRpaServerApplication.class, args);
    }

}
